import {
  post,
  get,
  put,
  dalete,
  postJosn,
  putone,
  patch,
  download
} from '../utils/request';


//查询会员规则
export function queryGradelevelRule(data) {
  return post('/api/member-service/v1/GradelevelRule/queryGradelevelRule', data);
}

//导出
export function getMemberExcel(data) {
  return download('/api/member-service/v1/member/getMemberExcel', data);
}
//查询会员等级规则
export function getmemberrule(data) {
    return post('/api/member-service/v1/GradelevelRule/queryGradelevelRule', data);
  }
//增加会员等级规则
export function addmemberrule(data) {
  return post('/api/member-service/v1/GradelevelRule/addGradelevelRule', data);
}
//修改会员等级规则
export function upmemberrule(data) {
  return post('/api/member-service/v1/GradelevelRule/updateGradelevelRule', data);
}
//删除会员等级规则
export function delmemberrule(data) {
  return post('/api/member-service/v1/GradelevelRule/deleteGradelevelRule?uuid=' + data.uuid);
}

//停用启用会员等级规则
export function usebutton(data) {
  return postJosn('/api/member-service/v1/GradelevelRule/deleteGradelevelRule', data);
}
